package tables

type Experience struct {
	Model
	CareerID uint   `json:"career_id"`
	Career   Career `json:"-"`
	Title    string `gorm:"comment:标题" json:"title"`
	Text     string `gorm:"comment:文本" json:"text"`
	From     string `gorm:"type:varchar(100);comment:来源" json:"from"`
	Detail   string `gorm:"comment:详细信息" json:"detail"`
	Type     uint   `json:"type" gorm:"type:tinyint(2);not null;default:0;comment:1 经验 2 攻略"`
}

func (e *Experience) TableName() string {
	return "experience"
}
